Class InstructionDlgImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.ui.impl.InstructionDlgImpl
All Implemented Interfaces:
IPCObject, InstructionDlg

public class InstructionDlgImpl extends IPCObjectImpl implements InstructionDlg
Information provided by the PKI file:

    \class InstructionDlg
    
    \brief InstructionDlg is the instruction dialog associated with activity files.
    
    \example appWindow().getInstructionDlg()
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • resetActivity

      public void resetActivity()
      Information provided by the PKI file:
      
          \brief Resets the activity.
          
              
      Specified by:
      resetActivity in interface InstructionDlg
    • showAnswerPage

      public void showAnswerPage(boolean bResetOnClose)
      Information provided by the PKI file:
      
          \brief Shows the Check Results page.
          
          \param bResetOnClose, true to reset the activity after closing the Check Results page, false to not reset the activity.
          
              
      Specified by:
      showAnswerPage in interface InstructionDlg
      Parameters:
      bResetOnClose - Takes in a parameter of bResetOnClose
    • closeAnswerPage

      public void closeAnswerPage()
      Information provided by the PKI file:
      
          \brief Closes the Check Results page.
          
              
      Specified by:
      closeAnswerPage in interface InstructionDlg
    • prev

      public void prev()
      Information provided by the PKI file:
      
          \brief Shows the previous instruction page.
          
              
      Specified by:
      prev in interface InstructionDlg
    • next

      public void next()
      Information provided by the PKI file:
      
          \brief Shows the next instruction page.
          
              
      Specified by:
      next in interface InstructionDlg
    • alwaysOnTop

      public void alwaysOnTop(boolean bOn)
      Information provided by the PKI file:
      
          \brief Enables or disables the always on top feature.
          
          \param bOn, true to enable the always on top feature, false to disable it.
          
              
      Specified by:
      alwaysOnTop in interface InstructionDlg
      Parameters:
      bOn - Takes in a parameter of bOn
    • dock

      public void dock()
      Information provided by the PKI file:
      
          \brief Dock the instructions dialog to the left of the main window.
          
              
      Specified by:
      dock in interface InstructionDlg
    • undock

      public void undock()
      Information provided by the PKI file:
      
          \brief Undock the instructions dialog.
          
              
      Specified by:
      undock in interface InstructionDlg
    • isDocked

      public boolean isDocked()
      Information provided by the PKI file:
      
          \brief Returns true if instructions dialog is docked, false otherwise.
          
          \return bool, true if instructions dialog is docked, false otherwise.
          
              
      Specified by:
      isDocked in interface InstructionDlg
      Returns:
      boolean Returns a boolean
    • setVisible

      public void setVisible(boolean bVisible)
      Information provided by the PKI file:
      
          \brief Shows or hides this widget from view.
          
          \param bVisible, true to show this widget, false to hide it.
          
              
      Specified by:
      setVisible in interface InstructionDlg
      Parameters:
      bVisible - Takes in a parameter of bVisible
    • setWidgetVisible

      public void setWidgetVisible(String widgetName, boolean bVisible)
      Information provided by the PKI file:
      
          \brief Shows or hides the specified child widget.
          
          \param widgetName, where widgetName can be one of the following: checkAnswerBtn, resetBtn, prevBtn, nextBtn, topCB, progressLbl, timeLbl.
          \param bVisible, true to show this child widget, false to hide it.
          
              
      Specified by:
      setWidgetVisible in interface InstructionDlg
      Parameters:
      widgetName - Takes in a parameter of widgetName
      bVisible - Takes in a parameter of bVisible
    • setDisabled

      public void setDisabled(boolean bDisabled)
      Information provided by the PKI file:
      
          \brief Enables or disables input events to this widget.
          
          \param bDisabled, true to disable input events to this widget, false to enable input events.
          
              
      Specified by:
      setDisabled in interface InstructionDlg
      Parameters:
      bDisabled - Takes in a parameter of bDisabled
    • setWidgetDisable

      public void setWidgetDisable(String widgetName, boolean bDisabled)
      Information provided by the PKI file:
      
          \brief Enables or disables the specified child widget.
          
          \param widgetName, where widgetName can be one of the following: checkAnswerBtn, resetBtn, prevBtn, nextBtn, topCB, progressLbl, timeLbl.
          \param bDisabled, true to disable input events to this child widget, false to enable input events.
          
              
      Specified by:
      setWidgetDisable in interface InstructionDlg
      Parameters:
      widgetName - Takes in a parameter of widgetName
      bDisabled - Takes in a parameter of bDisabled
    • isEditInstructionsLocked

      public boolean isEditInstructionsLocked()
      Information provided by the PKI file:
      
          \brief Returns true if edit instructions is locked, otherwise false.
          
          \return bool, true if edit instructions is locked, otherwise false.
          
              
      Specified by:
      isEditInstructionsLocked in interface InstructionDlg
      Returns:
      boolean Returns a boolean
    • setEditInstructionsLocked

      public void setEditInstructionsLocked(boolean bLock)
      Information provided by the PKI file:
      
          \brief Enables or disables the locking of edit instructions.
          
          \param bLock, true to lock editing instructions, false to allow editing instructions.
          
              
      Specified by:
      setEditInstructionsLocked in interface InstructionDlg
      Parameters:
      bLock - Takes in a parameter of bLock
    • setWindowGeometry

      public void setWindowGeometry(int x, int y, int width, int height)
      Information provided by the PKI file:
      
          \brief Sets the instruction dialog geometry and position.
          
          \param x, the x-coordinate to move the instruction dialog to.
          \param x, the y-coordinate to move the instruction dialog to.
          \param width, the width for the instruction dialog.
          \param height, the height for the instruction dialog.
          
              
      Specified by:
      setWindowGeometry in interface InstructionDlg
      Parameters:
      x - Takes in a parameter of x
      y - Takes in a parameter of y
      width - Takes in a parameter of width
      height - Takes in a parameter of height
    • getX

      public int getX()
      Information provided by the PKI file:
      
          \brief Returns the x-coordinate of the instruction dialog.
          
          \return int, the x-coordinate of the instruction dialog.
          
              
      Specified by:
      getX in interface InstructionDlg
      Returns:
      int Returns a int
    • getY

      public int getY()
      Information provided by the PKI file:
      
          \brief Returns the y-coordinate of the instruction dialog.
          
          \return int, the y-coordinate of the instruction dialog.
          
              
      Specified by:
      getY in interface InstructionDlg
      Returns:
      int Returns a int
    • getWidth

      public int getWidth()
      Information provided by the PKI file:
      
          \brief Returns the width of the instruction dialog.
          
          \return int, the width of the instruction dialog.
          
              
      Specified by:
      getWidth in interface InstructionDlg
      Returns:
      int Returns a int
    • getHeight

      public int getHeight()
      Information provided by the PKI file:
      
          \brief Returns the height of the instruction dialog.
          
          \return int, the height of the instruction dialog.
          
              
      Specified by:
      getHeight in interface InstructionDlg
      Returns:
      int Returns a int
    • raise

      public void raise()
      Information provided by the PKI file:
      
          \brief Brings the instruction dialog to the front.
          
              
      Specified by:
      raise in interface InstructionDlg
    • getWebView

      public WebView getWebView()
      Information provided by the PKI file:
      
          \brief Returns the WebView object of the instruction dialog.
          
          \return WebView, the WebView object of the instruction dialog.
          
              
      Specified by:
      getWebView in interface InstructionDlg
      Returns:
      WebView Returns a WebView
    • isShowCheckResultsLockMessage

      public boolean isShowCheckResultsLockMessage()
      Information provided by the PKI file:
      
          \brief Returns true if show check results lock message, false otherwise.
          
          \return bool, true if show check results lock message, false otherwise.
          
              
      Specified by:
      isShowCheckResultsLockMessage in interface InstructionDlg
      Returns:
      boolean Returns a boolean
    • setShowCheckResultsLockMessage

      public void setShowCheckResultsLockMessage(boolean bShow)
      Information provided by the PKI file:
      
          \brief set to show check results lock message or not.
          
          \param bShow, true to show check result lock message, false to not show.
          
              
      Specified by:
      setShowCheckResultsLockMessage in interface InstructionDlg
      Parameters:
      bShow - Takes in a parameter of bShow
    • overrideTimeLabel

      public void overrideTimeLabel(String label, String timeDisplay)
      Information provided by the PKI file:
      
          \brief Overrides the time label in the instruction box
          
              
      Specified by:
      overrideTimeLabel in interface InstructionDlg
      Parameters:
      label - Takes in a parameter of label
      timeDisplay - Takes in a parameter of timeDisplay
    • overrideProgressLabel

      public void overrideProgressLabel(String label, String progress)
      Information provided by the PKI file:
      
          \brief Overrides the progress label in the instruction box
          
              
      Specified by:
      overrideProgressLabel in interface InstructionDlg
      Parameters:
      label - Takes in a parameter of label
      progress - Takes in a parameter of progress
    • overrideInstructions

      public void overrideInstructions()
      Information provided by the PKI file:
      
          \brief Overrides the instructions and the system will not update instructions anymore.
          
              
      Specified by:
      overrideInstructions in interface InstructionDlg
    • getTabWebView

      public WebView getTabWebView(int index)
      Information provided by the PKI file:
      
          \brief Returns the web view in a tab.
          
              
      Specified by:
      getTabWebView in interface InstructionDlg
      Parameters:
      index - Takes in a parameter of index
      Returns:
      WebView Returns a WebView
    • setTabVisible

      public void setTabVisible(int index, boolean visible)
      Information provided by the PKI file:
      
          \brief Shows or hides a tab.
          
              
      Specified by:
      setTabVisible in interface InstructionDlg
      Parameters:
      index - Takes in a parameter of index
      visible - Takes in a parameter of visible
    • removeWidget

      public boolean removeWidget(String name)
      Information provided by the PKI file:
      
          \brief Removes a widget that was previously added to the instruction dialog.
          
          \param name, the name of the widget
          
              
      Specified by:
      removeWidget in interface InstructionDlg
      Parameters:
      name - Takes in a parameter of name
      Returns:
      boolean Returns a boolean
    • setSliderValue

      public boolean setSliderValue(String name, int value)
      Information provided by the PKI file:
      
          \brief Sets the value of a slider that was previously added to the instruction dialog.
          
          \param name, the name of the widget
          \param value, the value
          
              
      Specified by:
      setSliderValue in interface InstructionDlg
      Parameters:
      name - Takes in a parameter of name
      value - Takes in a parameter of value
      Returns:
      boolean Returns a boolean
    • setLabelText

      public boolean setLabelText(String name, String text)
      Information provided by the PKI file:
      
          \brief Sets the text on the label that was previously added to the instruction dialog.
          
          \param name, the name of the widget
          \param text, the text
          
              
      Specified by:
      setLabelText in interface InstructionDlg
      Parameters:
      name - Takes in a parameter of name
      text - Takes in a parameter of text
      Returns:
      boolean Returns a boolean
    • setWidgetToolTip

      public boolean setWidgetToolTip(String name, String tooltip)
      Information provided by the PKI file:
      
          \brief Sets the tooltip for a widget that was previously added to the instruction dialog.
          
          \param name, the name of the widget
          \param tooltip, the tooltip
          
              
      Specified by:
      setWidgetToolTip in interface InstructionDlg
      Parameters:
      name - Takes in a parameter of name
      tooltip - Takes in a parameter of tooltip
      Returns:
      boolean Returns a boolean